package com.beta.common.exception;

/**
 * Created by vector on 2016/11/22.
 */
public abstract class BaseServiceException extends RuntimeException {

    private String code;
    private Object[] args;

    public BaseServiceException(Exception exception) {
        super(exception);
    }

    public BaseServiceException(String code, Object... args) {
        this.code = code;
        this.args = args;
    }

    public BaseServiceException(Exception e, String code, Object... args) {
        super(e);
        this.code = code;
        this.args = args;
    }

    public String getCode() {
        return this.code;
    }

    public Object[] getArgs() {
        return this.args;
    }

}
